package com.zhongli.devplatform.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author WuXiCheng
 * @version 1.0
 * @date 2020/8/27 14:27
 */
@Data
@ApiModel(value = "第三方登录",description = "用户三方登录数据传输对象")
public class UserLoginDTO {

    @NotBlank(message = "角色不能为空")
    @ApiModelProperty(value = "角色必填(student:学生,parent:家长)",required = true)
    private String role;

    @NotBlank(message = "openid不能为空")
    @ApiModelProperty(value = "用户唯一id必填",required = true)
    private String openid;

    @NotBlank(message = "accessToken不能为空")
    @ApiModelProperty(value = "认证之后的token必填",required = true)
    private String accessToken;
}
